New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(test): pre-import test config files byimport.meta.glob
#685
Conversation
✅ Deploy Preview for rolldown-rs canceled.
|
@@ -1,33 +1,25 @@ | |||
/// <reference types="vite/client" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel this not ideal. Maybe vitest could exposed these from https://github.com/vitest-dev/vitest/blob/main/packages/vitest/importMeta.d.ts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will report this issue to vitest
Adding |
OK, we can't avoid installing |
import.meta.glob
import.meta.glob
Description
Get all configs at compile time. It won't slow down spawning tests.
One downside is that we can't get the type of import.meta.glob from
vitest
Test Plan